package com.suxin.design.facade;

/**
 * @author Tang
 * @classname HomeTheaterFacade
 * @description [  ]
 * @date 2022/12/30 15:33
 */
public class HomeTheaterFacade {

    private final DVDPlayer dvdPlayer;

    private final Screen screen;

    public HomeTheaterFacade() {
        this.dvdPlayer = DVDPlayer.getInstanc();
        this.screen = Screen.getInstance();
    }

    public void ready() {
        this.dvdPlayer.on();
        this.screen.up();
    }

    public void end() {
        this.dvdPlayer.off();
        this.screen.down();
    }

}
